%h1 Lawns
%table#main
  %tr
    %th Name
    %th Greenness
    %th Grass Type
  -for lawn in @lawns
    %tr
      %td=lawn.name
      %td=lawn.greenness
      %td=lawn.grass_type.name
      %td=link_to 'Show', lawn
      %td=link_to 'Edit', edit_lawn_path(lawn)
      %td=link_to 'Destroy', lawn, :method => :delete
%br
=link_to 'New Lawn', new_lawn_path